{layout name="p/base"}
  <div id="page-wrapper">
    <div class="row">
      <div class="col-lg-12">
        <h1>管理员管理 <small>管理员信息列表</small></h1>
        <ol class="breadcrumb">
          <li><a href="index.php"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li class="active"><i class="fa fa-table"></i> 管理员信息列表</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          这里可以添加、修改、删除管理员信息 
        </div>
      </div>
    </div>
    <!-- /.row -->
    <div class="row">
      <div class="col-lg-12">
        <div class="form-group">
          <div class="btn-group">
            <a href="/campmanagerlist/create" class="btn btn-primary">添加管理员</a>
          </div>
          <div class="btn-group">
            <button type="submit" class="btn btn-default" id="del">删除</button>
          </div>
        </div>
        <div class="table-responsive">
          <table class="table table-bordered table-hover table-striped tablesorter">
            <thead>
              <tr>
                <th><div class="checker"><span><input type="checkbox" name=""></span></div></th>
                <th>真实姓名</th>
                <th>手机号码</th>
                <th>邮箱</th>
                <th>状态</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
            <form id='delete' class="form-horizontal" role="form" action="" method="post">
              {volist name='list' id='vo'}
              <tr>
                <td><div class="checker"><span><input type="checkbox" name="ids[]" value="{$vo.id}"></span></div></td>
                <td>{$vo.name}</td>
                <td>{$vo.phone}</td>
                <td>{$vo.email}</td>
                <td>{$vo.status}</td>
                <td><a href="/campmanagerlist/{$vo.id}">查看</a> | <a href="/campmanagerlist/{$vo.id}/edit">编辑</a></td>
              </tr>
              {/volist}
            </form> 
            </tbody>
          </table>
        </div> 
      </div>
      
    </div>
    <!-- /.row -->
    
  </div><!-- /#page-wrapper -->
<script type="text/javascript" src="/jquery.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    $("#del").click(function(){
      $("#delete").attr('action','/campmanagerlist/delete');
      $("#delete").submit();
      });
    });
</script>
